Optimal. Leaf size=81 \[ -\frac {1}{2} \sqrt {\frac {1}{10} \left (3+\sqrt {5}\right )} \tanh ^{-1}\left (\sqrt {\frac {2}{3+\sqrt {5}}} x^2\right )+\frac {1}{2} \sqrt {\frac {1}{10} \left (3-\sqrt {5}\right )} \tanh ^{-1}\left (\sqrt {\frac {1}{2} \left (3+\sqrt {5}\right )} x^2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 81, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {1373, 1144,
213} \begin {gather*} \frac {1}{2} \sqrt {\frac {1}{10} \left (3-\sqrt {5}\right )} \tanh ^{-1}\left (\sqrt {\frac {1}{2} \left (3+\sqrt {5}\right )} x^2\right )-\frac {1}{2} \sqrt {\frac {1}{10} \left (3+\sqrt {5}\right )} \tanh ^{-1}\left (\sqrt {\frac {2}{3+\sqrt {5}}} x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 213
Rule 1144
Rule 1373
Rubi steps
\begin {align*} \int \frac {x^5}{1-3 x^4+x^8} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {x^2}{1-3 x^2+x^4} \, dx,x,x^2\right )\\ &=\frac {1}{20} \left (5-3 \sqrt {5}\right ) \text {Subst}\left (\int \frac {1}{-\frac {3}{2}+\frac {\sqrt {5}}{2}+x^2} \, dx,x,x^2\right )+\frac {1}{20} \left (5+3 \sqrt {5}\right ) \text {Subst}\left (\int \frac {1}{-\frac {3}{2}-\frac {\sqrt {5}}{2}+x^2} \, dx,x,x^2\right )\\ &=-\frac {1}{2} \sqrt {\frac {1}{10} \left (3+\sqrt {5}\right )} \tanh ^{-1}\left (\sqrt {\frac {2}{3+\sqrt {5}}} x^2\right )+\frac {1}{2} \sqrt {\frac {1}{10} \left (3-\sqrt {5}\right )} \tanh ^{-1}\left (\sqrt {\frac {1}{2} \left (3+\sqrt {5}\right )} x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 91, normalized size = 1.12 \begin {gather*} \frac {1}{40} \left (\left (-5+\sqrt {5}\right ) \log \left (-1+\sqrt {5}-2 x^2\right )+\left (5+\sqrt {5}\right ) \log \left (1+\sqrt {5}-2 x^2\right )-\left (-5+\sqrt {5}\right ) \log \left (-1+\sqrt {5}+2 x^2\right )-\left (5+\sqrt {5}\right ) \log \left (1+\sqrt {5}+2 x^2\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 62, normalized size = 0.77
method | result | size |
default | \(\frac {\ln \left (x^{4}-x^{2}-1\right )}{8}-\frac {\sqrt {5}\, \arctanh \left (\frac {\left (2 x^{2}-1\right ) \sqrt {5}}{5}\right )}{20}-\frac {\ln \left (x^{4}+x^{2}-1\right )}{8}-\frac {\arctanh \left (\frac {\left (2 x^{2}+1\right ) \sqrt {5}}{5}\right ) \sqrt {5}}{20}\) | \(62\) |
risch | \(\frac {\ln \left (2 x^{2}-\sqrt {5}-1\right )}{8}+\frac {\ln \left (2 x^{2}-\sqrt {5}-1\right ) \sqrt {5}}{40}+\frac {\ln \left (2 x^{2}+\sqrt {5}-1\right )}{8}-\frac {\ln \left (2 x^{2}+\sqrt {5}-1\right ) \sqrt {5}}{40}-\frac {\ln \left (2 x^{2}-\sqrt {5}+1\right )}{8}+\frac {\ln \left (2 x^{2}-\sqrt {5}+1\right ) \sqrt {5}}{40}-\frac {\ln \left (2 x^{2}+\sqrt {5}+1\right )}{8}-\frac {\ln \left (2 x^{2}+\sqrt {5}+1\right ) \sqrt {5}}{40}\) | \(126\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 87 vs.
\(2 (41) = 82\).
time = 0.51, size = 87, normalized size = 1.07 \begin {gather*} \frac {1}{40} \, \sqrt {5} \log \left (\frac {2 \, x^{2} - \sqrt {5} + 1}{2 \, x^{2} + \sqrt {5} + 1}\right ) + \frac {1}{40} \, \sqrt {5} \log \left (\frac {2 \, x^{2} - \sqrt {5} - 1}{2 \, x^{2} + \sqrt {5} - 1}\right ) - \frac {1}{8} \, \log \left (x^{4} + x^{2} - 1\right ) + \frac {1}{8} \, \log \left (x^{4} - x^{2} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 109 vs.
\(2 (41) = 82\).
time = 0.39, size = 109, normalized size = 1.35 \begin {gather*} \frac {1}{40} \, \sqrt {5} \log \left (\frac {2 \, x^{4} + 2 \, x^{2} - \sqrt {5} {\left (2 \, x^{2} + 1\right )} + 3}{x^{4} + x^{2} - 1}\right ) + \frac {1}{40} \, \sqrt {5} \log \left (\frac {2 \, x^{4} - 2 \, x^{2} - \sqrt {5} {\left (2 \, x^{2} - 1\right )} + 3}{x^{4} - x^{2} - 1}\right ) - \frac {1}{8} \, \log \left (x^{4} + x^{2} - 1\right ) + \frac {1}{8} \, \log \left (x^{4} - x^{2} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 165 vs.
\(2 (58) = 116\).
time = 0.17, size = 165, normalized size = 2.04 \begin {gather*} \left (- \frac {1}{8} - \frac {\sqrt {5}}{40}\right ) \log {\left (x^{2} - \frac {3}{2} - \frac {3 \sqrt {5}}{10} - 640 \left (- \frac {1}{8} - \frac {\sqrt {5}}{40}\right )^{3} \right )} + \left (- \frac {1}{8} + \frac {\sqrt {5}}{40}\right ) \log {\left (x^{2} - \frac {3}{2} - 640 \left (- \frac {1}{8} + \frac {\sqrt {5}}{40}\right )^{3} + \frac {3 \sqrt {5}}{10} \right )} + \left (\frac {1}{8} - \frac {\sqrt {5}}{40}\right ) \log {\left (x^{2} - \frac {3 \sqrt {5}}{10} - 640 \left (\frac {1}{8} - \frac {\sqrt {5}}{40}\right )^{3} + \frac {3}{2} \right )} + \left (\frac {\sqrt {5}}{40} + \frac {1}{8}\right ) \log {\left (x^{2} - 640 \left (\frac {\sqrt {5}}{40} + \frac {1}{8}\right )^{3} + \frac {3 \sqrt {5}}{10} + \frac {3}{2} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 92 vs.
\(2 (41) = 82\).
time = 3.59, size = 92, normalized size = 1.14 \begin {gather*} \frac {1}{40} \, \sqrt {5} \log \left (\frac {{\left | 2 \, x^{2} - \sqrt {5} + 1 \right |}}{2 \, x^{2} + \sqrt {5} + 1}\right ) + \frac {1}{40} \, \sqrt {5} \log \left (\frac {{\left | 2 \, x^{2} - \sqrt {5} - 1 \right |}}{{\left | 2 \, x^{2} + \sqrt {5} - 1 \right |}}\right ) - \frac {1}{8} \, \log \left ({\left | x^{4} + x^{2} - 1 \right |}\right ) + \frac {1}{8} \, \log \left ({\left | x^{4} - x^{2} - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.38, size = 77, normalized size = 0.95 \begin {gather*} -\mathrm {atanh}\left (\frac {4\,x^2}{\sqrt {5}-3}-\frac {2\,\sqrt {5}\,x^2}{\sqrt {5}-3}\right )\,\left (\frac {\sqrt {5}}{20}+\frac {1}{4}\right )-\mathrm {atanh}\left (\frac {4\,x^2}{\sqrt {5}+3}+\frac {2\,\sqrt {5}\,x^2}{\sqrt {5}+3}\right )\,\left (\frac {\sqrt {5}}{20}-\frac {1}{4}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________